About 3 results: "Backbone.Collection.extend repo:joakin/backbone-basics"
Page 1 of 1
Filter Results
Sources
Languages
Filter Results
Try Search On


backbone-basics-min.js in backbone-basics https://github.com/joakin/backbone-basics.git | 33 lines | Javascript
  1. !function(n,e,r){function i(r,t){if(!e[r]){if(!n[r]){var c=typeof require=="function"&&require;if(!t&&c)return c(r,!0);if(o)return o(r,!0);throw new Error("Cannot find module '"+r+"'")}var s=e[r]={exports:{}};n[r][0].call(s.exports,function(e){var o=n[r][1][e];return i(o?o:e)},s,s.exports)}return e[r].exports}var o=typeof require=="function"&&require;for(var t=0;t<r.length;t++)i(r[t]);return i}({1:[function(n,e,r){!function(){var e=n("./index");if(!window.Basics){window.Basics=e}else{throw new Error("Basics global variable already defined")}}()},{"./index":2}],2:[function(n,e,r){var i={};i.Model=n("./model");i.Collection=n("./collection");i.View=n("./view");i.Fn=n("./fn");e.exports=i;console.log("loaded!")},{"./model":3,"./collection":4,"./view":5,"./fn":6}],3:[function(n,e,r){var i=n("./fn").mixin,o=n("underscore"),t=n("backbone");/*
  2.  * Base model for the application.
  3. // By setting the property `types` on a model, you can specify which keys
  4. // correspond to complex types, let that be Models, Collections or custom
  5. // they have to implement.
  6. e.exports=t.Model.extend({// This function takes a json object and parses its attributes
  7. // objects.
  8. toJSON:function(){var n=o.clone(this.attributes);return this._typesToJSON(n)}},{mixin:o.partial(i,this)})},{underscore:7,backbone:8,"./fn":6}],4:[function(n,e,r){var i=n("./fn").mixin,o=n("underscore"),t=n("backbone");/*
  9.  * Base Collection
  10.  */
  11. e.exports=t.Collection.extend({},{mixin:o.partial(i,this)})},{underscore:7,backbone:8,"./fn":6}],6:[function(n,e,r){var i=n("underscore");var o={};o.mixin=function(n,e){for(var r in e){if(e.hasOwnProperty(r)){var t=e[r];if(i.isObject(t)){t=o.mixin(i.isArray(t)?[]:{},t)}n[r]=t}}return n}},{underscore:7}],5:[function(n,e,r){var i=n("./fn").mixin,o=n("underscore"),t=n("backbone");/*
  12.  */
  13. e.exports=t.View.extend({},{mixin:o.partial(i,this)})},{underscore:7,backbone:8,"./fn":6}],7:[function(n,e,r){e.exports=window._},{}],8:[function(n,e,r){e.exports=window.Backbone},{}]},{},[1]);

Back to Top