1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-26 03:02:25 -05:00

Update to use human-model and human-view

This commit is contained in:
Lance Stout 2013-09-03 19:18:31 -07:00
parent 5c6655e7be
commit f1bad70a14
10 changed files with 19 additions and 19 deletions

View File

@ -2,14 +2,14 @@
"use strict";
var async = require('async');
var StrictModel = require('strictmodel').Model;
var HumanModel = require('human-model');
var Resources = require('./resources');
var Messages = require('./messages');
var Message = require('./message');
var crypto = XMPP.crypto;
module.exports = StrictModel.extend({
module.exports = HumanModel.extend({
initialize: function (attrs) {
if (attrs.jid) {
this.cid = attrs.jid;

View File

@ -1,12 +1,12 @@
/*global app*/
"use strict";
var StrictModel = require('strictmodel');
var HumanModel = require('human-model');
var Contacts = require('./contacts');
var Contact = require('./contact');
module.exports = StrictModel.Model.extend({
module.exports = HumanModel.extend({
session: {
jid: ['string', true, ''],
status: ['string', true, ''],

View File

@ -1,10 +1,10 @@
/*global me*/
"use strict";
var StrictModel = require('strictmodel').Model;
var HumanModel = require('human-model');
module.exports = StrictModel.extend({
module.exports = HumanModel.extend({
initialize: function (attrs) {
this._created = Date.now();
},

View File

@ -1,9 +1,9 @@
"use strict";
var StrictModel = require('strictmodel').Model;
var HumanModel = require('human-model');
module.exports = StrictModel.extend({
module.exports = HumanModel.extend({
initialize: function () {},
type: 'resource',
session: {

View File

@ -2,10 +2,10 @@
"use strict";
var _ = require('underscore');
var StrictView = require('strictview');
var HumanView = require('human-view');
module.exports = StrictView.extend({
module.exports = HumanView.extend({
show: function (animation) {
var self = this;

View File

@ -9,7 +9,7 @@ var ChatPage = require('./pages/chat');
module.exports = Backbone.Router.extend({
routes: {
'': 'signin',
'': 'main',
'signin': 'signin',
'chat/:jid': 'chat'
},

View File

@ -2,11 +2,11 @@
"use strict";
var _ = require('underscore');
var StrictView = require('strictview');
var HumanView = require('human-view');
var templates = require('../templates');
module.exports = StrictView.extend({
module.exports = HumanView.extend({
template: templates.includes.contactListItem,
classBindings: {
show: '',

View File

@ -1,12 +1,12 @@
/*global $, app, me*/
"use strict";
var StrictView = require('strictview');
var HumanView = require('human-view');
var templates = require('../templates');
var ContactListItem = require('../views/contactListItem');
module.exports = StrictView.extend({
module.exports = HumanView.extend({
template: templates.body,
events: {
'click a[href]': 'handleLinkClick'

View File

@ -2,11 +2,11 @@
"use strict";
var _ = require('underscore');
var StrictView = require('strictview');
var HumanView = require('human-view');
var templates = require('../templates');
module.exports = StrictView.extend({
module.exports = HumanView.extend({
template: templates.includes.message,
initialize: function (opts) {
this.render();

View File

@ -18,8 +18,8 @@
"node-uuid": "1.4.1",
"semi-static": "0.0.4",
"sound-effect-manager": "0.0.5",
"strictmodel": "0.1.1",
"strictview": "1.0.2",
"human-model": "0.3.0",
"human-view": "1.1.0",
"templatizer": "0.1.2",
"underscore": "1.5.1"
},