pax_global_header00006660000000000000000000000064120753362630014521gustar00rootroot0000000000000052 comment=836a8cb4d8744fcd71d6ca227dda051a4e5cb325 backbone-0.9.10/000077500000000000000000000000001207533626300133545ustar00rootroot00000000000000backbone-0.9.10/.gitignore000066400000000000000000000000411207533626300153370ustar00rootroot00000000000000raw *.sw? .DS_Store node_modules backbone-0.9.10/.npmignore000066400000000000000000000000571207533626300153550ustar00rootroot00000000000000test/ Rakefile docs/ raw/ examples/ index.html backbone-0.9.10/.travis.yml000066400000000000000000000001011207533626300154550ustar00rootroot00000000000000language: node_js node_js: - 0.8 notifications: email: false backbone-0.9.10/CNAME000066400000000000000000000000201207533626300141120ustar00rootroot00000000000000backbonejs.org backbone-0.9.10/CONTRIBUTING.md000066400000000000000000000015171207533626300156110ustar00rootroot00000000000000## How to contribute to Backbone.js * Before you open a ticket or send a pull request, [search](https://github.com/documentcloud/backbone/issues) for previous discussions about the same feature or issue. Add to the earlier ticket if you find one. * Before sending a pull request for a feature or bug fix, be sure to have [tests](http://backbonejs.org/test/test.html). * If your pull request affects Backbone's public API, make relevant changes to the [documentation](https://github.com/documentcloud/backbone/blob/master/index.html). If appropriate, also add a line in the "Change Log" section. * Use the same coding style as the rest of the [codebase](https://github.com/documentcloud/backbone/blob/master/backbone.js). * In your pull request, do not re-build the minified `backbone-min.js` file. We'll do that before cutting a new release. backbone-0.9.10/LICENSE000066400000000000000000000020661207533626300143650ustar00rootroot00000000000000Copyright (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.backbone-0.9.10/README.md000066400000000000000000000036251207533626300146410ustar00rootroot00000000000000 ____ __ __ /\ _`\ /\ \ /\ \ __ \ \ \ \ \ __ ___\ \ \/'\\ \ \____ ___ ___ __ /\_\ ____ \ \ _ <' /'__`\ /'___\ \ , < \ \ '__`\ / __`\ /' _ `\ /'__`\ \/\ \ /',__\ \ \ \ \ \/\ \ \.\_/\ \__/\ \ \\`\\ \ \ \ \/\ \ \ \/\ \/\ \/\ __/ __ \ \ \/\__, `\ \ \____/\ \__/.\_\ \____\\ \_\ \_\ \_,__/\ \____/\ \_\ \_\ \____\/\_\_\ \ \/\____/ \/___/ \/__/\/_/\/____/ \/_/\/_/\/___/ \/___/ \/_/\/_/\/____/\/_/\ \_\ \/___/ \ \____/ \/___/ (_'_______________________________________________________________________________'_) (_.———————————————————————————————————————————————————————————————————————————————._) Backbone supplies structure to JavaScript-heavy applications by providing models key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing application over a RESTful JSON interface. For Docs, License, Tests, pre-packed downloads, and everything else, really, see: http://backbonejs.org To suggest a feature, report a bug, or general discussion: http://github.com/documentcloud/backbone/issues/ All contributors are listed here: http://github.com/documentcloud/backbone/contributors Special thanks to Robert Kieffer for the original philosophy behind Backbone. http://github.com/broofa backbone-0.9.10/Rakefile000066400000000000000000000023261207533626300150240ustar00rootroot00000000000000require 'rubygems' HEADER = /((^\s*\/\/.*\n)+)/ desc "rebuild the backbone-min.js files for distribution" task :build do begin require 'closure-compiler' rescue LoadError puts "closure-compiler not found.\nInstall it by running 'gem install closure-compiler'" exit end source = File.read 'backbone.js' header = source.match(HEADER) File.open('backbone-min.js', 'w+') do |file| file.write header[1].squeeze(' ') + Closure::Compiler.new.compress(source) end end desc "build the docco documentation" task :doc do check 'docco', 'docco', 'https://github.com/jashkenas/docco' system 'docco backbone.js && docco examples/todos/todos.js examples/backbone-localstorage.js' end desc "run JavaScriptLint on the source" task :lint do check 'jsl', 'JavaScript Lint', 'http://www.javascriptlint.com/' system "jsl -nofilelisting -nologo -conf docs/jsl.conf -process backbone.js" end desc "test the CoffeeScript integration" task :test do check 'coffee', 'CoffeeScript', 'http://coffeescript.org/' system "coffee test/*.coffee" end # Check for the existence of an executable. def check(exec, name, url) return unless `which #{exec}`.empty? puts "#{name} not found.\nInstall it from #{url}" exit end backbone-0.9.10/backbone-min.js000066400000000000000000000435561207533626300162540ustar00rootroot00000000000000// Backbone.js 0.9.10 // (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc. // Backbone may be freely distributed under the MIT license. // For all details and documentation: // http://backbonejs.org (function(){var n=this,B=n.Backbone,h=[],C=h.push,u=h.slice,D=h.splice,g;g="undefined"!==typeof exports?exports:n.Backbone={};g.VERSION="0.9.10";var f=n._;!f&&"undefined"!==typeof require&&(f=require("underscore"));g.$=n.jQuery||n.Zepto||n.ender;g.noConflict=function(){n.Backbone=B;return this};g.emulateHTTP=!1;g.emulateJSON=!1;var v=/\s+/,q=function(a,b,c,d){if(!c)return!0;if("object"===typeof c)for(var e in c)a[b].apply(a,[e,c[e]].concat(d));else if(v.test(c)){c=c.split(v);e=0;for(var f=c.length;e< f;e++)a[b].apply(a,[c[e]].concat(d))}else return!0},w=function(a,b){var c,d=-1,e=a.length;switch(b.length){case 0:for(;++d=b);this.root=("/"+this.root+"/").replace(I,"/");b&&this._wantsHashChange&&(this.iframe=g.$('