3 Star 0 Fork 0

Gitee 极速下载/embedjs

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/uxebu/embedjs
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README
MIT
            |             |  _)
  -_)  ` \   _ \  -_)  _` |   |(_-<
\___|_|_|_|_.__/\___|\__,_|_) |___/
                           __/

EmbedJS

About

EmbedJS is a JavaScript framework targeted at embedded devices (mobile phones, TVs, etc.). It takes a different approach than other frameworks by shipping just the code needed for each device. That means, there's less code going over the wire, less code branching at runtime and less memory usage.

EmbedJS is based on the core code of the Dojo Toolkit, optimized for what you really just need on a mobile phone.

EmbedJS is a Dojo Foundation project and dual-licensed -- new BSD or MIT.

Features

EmbedJS uses the concept of features: Functionalities are split up into features, as fine-grained as possible, and each feature might have multiple implementations.

The Features are implemented as AMD compatible modules, so if you don't use a ready-made build, you can use a loader like require.js to easily pull in the features you need for your project – each implementation of a given feature knows it's dependencies, so you don't have to worry about that.

This way it's super-easy to just use the features you want in a give project – no need to ship code that's never executed!

Goals

Goal 1: Provide an optimized version for each device so that we can make use of the features of each platform as optimal as possible.

Goal 2: Stay compatible to the dojo APIs. For those who are used to dojo we don't want to make it hard for you to learn a new set of APIs – just stick to those you know. And make it easy for those new to dojo to learn the API by referencing the existing docs and not reinventing the wheel.

Goal 3: Show a way of how (we think) cross-device development should work today. Or, to be precise, how cross-target development should work, as the feature based implementation approach used in EmbedJS is a very generic way to manage, develop, test and build for different targets, be it a free vs. premium version of your app or a lightweight vs. full-blown version of your website.

Goal 4: Ultimatively, we hope that all the efforts one day may flow back into the Dojo Toolkit.

Building EmbedJS

You can download ready-made builds, just check out the build folder. But if you want to build your custom build, you can very well do that!

EmbedJS is using the AMD module pattern and it's working fine with James Burke's awesome RequireJS to load, and r.js to build. For instructions on how to build with r.js, please see the very detailed RequireJS documentation.

EmbedJS is released under two licenses: The new BSD License and the MIT License. You may choose the license that best suits your development needs. The text of both licenses are provided below. The "New" BSD License: ---------------------- Copyright (c) 2011, The Dojo Foundation All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the Dojo Foundation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. MIT License ----------- Copyright (c) 2011, The Dojo Foundation 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.

About

Embed.JS 是一个用于嵌入式设备的 JavaScript 框架 expand collapse
Cancel

Releases

No release

Contributors

All

Activities

can not load any more
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mirrors/embedjs.git
git@gitee.com:mirrors/embedjs.git
mirrors
embedjs
embedjs
master

Search