Created
May 7, 2012 13:22
-
-
Save hvgotcodes/2627727 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated by CoffeeScript 1.3.1 | |
(function() { | |
hsc.models.Record = (function() { | |
Record.name = 'Record'; | |
function Record(props) { | |
this.props = props != null ? props : {}; | |
Ti.API.info('creating new record'); | |
} | |
Record.prototype.save = function() { | |
return Ti.API.info('saving record'); | |
}; | |
return Record; | |
})(); | |
hsc.models.Record.STATUS_NEW = 'new'; | |
hsc.models.Record.STATUS_DIRTY = 'new'; | |
}).call(this); | |
--- subclass | |
(function() { | |
var __hasProp = {}.hasOwnProperty, | |
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor; child.__super__ = parent.prototype; return child; }; | |
hsc.models.Round = (function(_super) { | |
__extends(Round, _super); | |
Round.name = 'Round'; | |
function Round() { | |
return Round.__super__.constructor.apply(this, arguments); | |
} | |
return Round; | |
})(hsc.models.Record); | |
}).call(this); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment